package cate.common.table.res.racebadge.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.racebadge.row.RaceBadgeGradeRow;

public class RaceBadgeGradeSheet extends ESheet<RaceBadgeGradeRow> {
    @Override
    public String getSheetName() {
        return "族徽进阶";
    }

    public RaceBadgeGradeRow getGradeRow(int camp, int grade) {
        return getList().stream().filter(e -> e.camp == camp && e.grade == grade).findAny().orElse(null);
    }
}
